<%@ page import = "java.util.*,com.ibatis.sqlmap.client.SqlMapClient,com.meetablog.util.SqlMapConfig" %>
<%
	String boardSeq = request.getParameter("boardSeq");
%>
<%--
<img src="/images/main_img/main_20101010.jpg" alt="" style="width: 480px; height:400px;" onload="getTime();"/>
--%>
<%//오른쪽메뉴임 %>
<jsp:include page="/common/inc/Right.jsp" />
<%//오른쪽메뉴임 %>
<div id="liveclock1" style="position: relative; top: -80px; left: 160px; border: 0px solid red; width:310px; text-align: left; float:left;" ></div>
<form name="mainForm" id="mainForm" method="post">
boardSeq : <input type='text' name='boardSeq' value='<%=boardSeq %>' />
</form>
<SCRIPT LANGUAGE="JavaScript">
<!-- 
function getTime() {
now = new Date();
dday = new Date("Oct 16 2010 23:59:59"); //구하고자하는날
days = (dday - now) / 1000 / 60 / 60 / 24;
daysRound = Math.floor(days);
hours = (dday - now) / 1000 / 60 / 60 - (24 * daysRound);
hoursRound = Math.floor(hours);
minutes = (dday - now) / 1000 /60 - (24 * 60 * daysRound) - (60 * hoursRound);
minutesRound = Math.floor(minutes);
seconds = (dday - now) / 1000 - (24 * 60 * 60 * daysRound) - (60 * 60 * hoursRound) - (60 * minutesRound);
secondsRound = Math.round(seconds);


sumHours = daysRound*24+hoursRound;

daysRound		 = String(daysRound);
hoursRound	 = String(hoursRound);
sumHours		 = String(sumHours);
minutesRound = String(minutesRound);
secondsRound = String(secondsRound);



				if (daysRound<=9){
									 daysRound="<img src='/images/layout/numberImg/0.jpg' style='width:50px; height:50px;' />"+"<img src='/images/layout/numberImg/"+daysRound+".jpg' style='width:50px; height:50px;' />";
        } else{
        	daysRound = "<img src='/images/layout/numberImg/"+hoursRound.substring(1,2)+".jpg' style='width:50px; height:50px;' />";
        }
        
				if (hoursRound<=9){
									 hoursRound="<img src='/images/layout/numberImg/0.jpg' style='width:50px; height:50px;' />"+"<img src='/images/layout/numberImg/"+hoursRound+".jpg' style='width:50px; height:50px;' />";
        } else{
        	hoursRound = "<img src='/images/layout/numberImg/"+hoursRound.substring(0,1)+".jpg' style='width:50px; height:50px;' /><img src='/images/layout/numberImg/"+hoursRound.substring(1,2)+".jpg' style='width:50px; height:50px;' />";
        }
            
				if (sumHours<=9){
					 sumHours="<img src='/images/layout/numberImg/0.jpg' style='width:50px; height:50px;' />"+"<img src='/images/layout/numberImg/"+sumHours+".jpg' style='width:50px; height:50px;' />";
        } else{
        	sumHours = "<img src='/images/layout/numberImg/"+sumHours.substring(0,1)+".jpg' style='width:50px; height:50px;' /><img src='/images/layout/numberImg/"+sumHours.substring(1,2)+".jpg' style='width:50px; height:50px;' />";
        }
            
            
        if (minutesRound<=9){
        	minutesRound="<img src='/images/layout/numberImg/0.jpg' style='width:50px; height:50px;' />"+"<img src='/images/layout/numberImg/"+minutesRound+".jpg' style='width:50px; height:50px;' />";
        } else{
        	minutesRound = "<img src='/images/layout/numberImg/"+minutesRound.substring(0,1)+".jpg' style='width:50px; height:50px;' /><img src='/images/layout/numberImg/"+minutesRound.substring(1,2)+".jpg' style='width:50px; height:50px;' />";
        }
            
        if (secondsRound<=9){
        		secondsRound= "<img src='/images/layout/numberImg/0.jpg' style='width:50px; height:50px;' /><img src='/images/layout/numberImg/"+secondsRound+".jpg' style='width:50px; height:50px;' />";
          }else{
          	secondsRound= "<img src='/images/layout/numberImg/"+secondsRound.substring(0,1)+".jpg' style='width:50px; height:50px;' /><img src='/images/layout/numberImg/"+secondsRound.substring(1,2)+".jpg' style='width:50px; height:50px;' />";
          }

myclock1="<b><font size='4' color='#b4b2b4'>남은시간 </font></br></b>" + sumHours + ":" + minutesRound + ":" + secondsRound ;

document.getElementById("liveclock1").innerHTML=myclock1
newtime = window.setTimeout("getTime();", 1000);
}
//  -->
</script>